local more1__shi__jianying = fk.CreateSkill {
  name = "more1__shi__jianying",
}

Fk:loadTranslationTable{
  ["more1__shi__jianying"] = "渐营",
  [":more1__shi__jianying"] = "当你因弃置而失去牌时，你可以摸X张牌（X为弃置牌的花色数）。",

  ["$more1__shi__jianying1"] = "",
  ["$more1__shi__jianying2"] = "",
}


more1__shi__jianying:addEffect(fk.AfterCardsMove, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    if player:hasSkill(more1__shi__jianying.name) then
      for _, move in ipairs(data) do
        if move.moveReason == fk.ReasonDiscard and move.from == player then
          return true
        end
      end
    end
  end,
  on_use = function(self, event, target, player, data)
    local suits = {}
    for _, move in ipairs(data) do
      if move.moveReason == fk.ReasonDiscard and move.from == player then
        for _, info in ipairs(move.moveInfo) do
          table.insertIfNeed(suits, Fk:getCardById(info.cardId).suit)
        end
      end
    end
    table.removeOne(suits, Card.NoSuit)
    if #suits > 0 then
      player:drawCards(#suits, more1__shi__jianying.name)
    end

  end,
})















return more1__shi__jianying
